Assignment content:-
Machines used:-
Project introduction.
I and my group participant have discussion with our remote instructor Mr sibu for making a vertical plotter he has given us the basic concept and idea to make vertical plotter using arduino and stepper motor. My group project is a hanging drawing machine (vertical plotter) that moves its hand in two axes (X, Y). The hand conists of a pen attached to a 3D printed holder that connected to two stepper motors from the right and left sides. The machine should be attached vertically to a board and being controlled by a g-code.
The aim of this machine is to enable the user to draw anything on a board or a wall. Requirements are simple as the user should just fix the machine on the panel want to draw on and enter the size of the drawing area and machine specifications.
Following are the details documentation for the hanging plotter. Work flow for the making machine.
Bill of Materials.
component description
circuit connection
find the 2 pair out six cable in stepper using multi-meter
Here is the connection for stepper and servo in the figure. for servo -x, +5v and GND from the CNC shield. i use power supply where i can adjust current and voltage but 12v to 24 volt i have given 13v and 1Amp
Grbl Controller.
GRBL is an open source software or firmware which enables motion control for CNC machines. We can easily install the GRBL firmware to an Arduino and so we instantly get a low cost, high performance CNC controller. The GRBL uses G-code as input, and outputs motion control via the Arduino .
Download GRBL , this is the direct link: https://github.com/grbl/grbl/archive/master.zip
Extract on the desktop the grbl-master folder, you find it in the file master.zip
Run the Arduino IDE, currently I’m using version 1.8.1
From the application bar menu, choose: Sketch -> #include Library -> Add Library from file.ZIP…
Select the folder grbl that you can find inside the grlb-master folder and click on Open
The library
now is installed and the IDE software will show you this message: The library is added to your library. Check the “libraries
” menu.
Now that you have installed the GLBR library on the IDE, you must compile and install the sketch GRBL UPLOAD
in the Arduino board.
Connects Arduino to your computer and make sure that the IDE is correctly configured (COM and Board type)
Click on Upload and wait until transferring will finish.
Universal G-Code Sender.
A full featured gcode platform used for interfacing with advanced CNC controllers like GRBL , TinyG, g2core and Smoothieware. Universal Gcode Sender is a self-contained Java application which includes all external dependencies and can be used on most computers running Windows, MacOSX or Linux.
Now you can test your Arduino with GRBL with Universal Gcode Sender, this is the link of the project on GitHub https://winder.github.io/ugs_website/
and this is the direct link to the download page https://winder.github.io/ugs_website/download/
Universal Gcode Sender is a multi platform program written in Java and requires a version 7 or higher to run.
Now after download extract the zip file and open before that you have install java and update so that system can enable java.
Here the com port 8 it should be properly connect otherwise connection will not establish to UNO
Here i click x+,X- and y+, y- and > which show the movement of motor.After that i upload a g-code file which is a circle its not properly work have error then my instructor suggest me to use Polargraph source code and processing 2.2.1
Polargraph
A polar plotter also known as polargraph is a plotter which uses bipolar coordinates to produce vector drawings using a pen suspended from strings connected to two pulleys at the top of the plotting surface. This gives it two degrees of freedom and allows it to scale to fairly large drawings simply by moving the motors further apart and using longer strings. Some polar plotters will integrate a raising mechanism for the pen which allows lines to be broken while drawing.
All the necessary files can be found in the repository. The Micro-controller firmware and Application can be found inside this zip file.
extract the zip file and Also copy the polargraph_server_a1 folder into the Arduino .
There are few important edits to be made.
polargraph_server_a1.ino
#define MICROCONTROLLER MC_UNO
#define SERIAL_STEPPER_DRIVERS
const byte PEN_HEIGHT_SERVO_PIN = 9;
configuration.ino
#ifdef SERIAL_STEPPER_DRIVERS
#define MOTOR_A_ENABLE_PIN 8
#define MOTOR_A_STEP_PIN 2
#define MOTOR_A_DIR_PIN 5
#define MOTOR_B_ENABLE_PIN 8
#define MOTOR_B_STEP_PIN 3
#define MOTOR_B_DIR_PIN 6
AccelStepper motorA(1,MOTOR_A_STEP_PIN, MOTOR_A_DIR_PIN);
AccelStepper motorB(1,MOTOR_B_STEP_PIN, MOTOR_B_DIR_PIN);
#endif
Processing 2.2 and configuration
Processing is a flexible software sketchbook and a language for learning how to code within the context of the visual arts. Since 2001, Processing has promoted software literacy within the visual arts and visual literacy within technology. There are tens of thousands of students, artists, designers, researchers, and hobbyists who use Processing for learning and prototyping.
There is an
UI for this machine and the application can be found inside the zip. The app is written an compiled using processing 2.2.1.
It does not work in version 3+.
Open Processing. Then open polargraphcontroller (file -> sketchbook -> polargraphcontroller)
R
un the program by pressing the Run button.
Enter the Setup section from the tool bar.
Adjust the size between two pulleys on the Machine Width
Adjust
the Machine Height (height between the pulleyand the end of the panel)
After machine dimensions, adjust the size the area you will draw.
click on run .
connect the com port here is com 8
i use customised file then upload
Servo motor (Pen) settings
3D design and parts
Initially i was using card board leaser cut pen holder it not properly balance Presently i am using Gondola which has been downloaded. For better improvement and precision Gondola needs to be designing and putting bearing with the belt.final test
Reference